<?php

class Application_Form_Selectmarkers extends Zend_Form
{
	
        public function __construct()



        {
            $translate = new My_Action_Helper_Lang();

            $this->setName('update_form');
            parent::__construct();

            $category = new Zend_Form_Element_Select('type');
            $table = new Application_Model_Markers();
            //добавляем опции в форму
            //$category->addMultiOption(0);
            $category->setLabel($translate->_('Category'));
            //массивом передаем значения в select
            foreach ($table->getAllCategories() as $table) {
                $category->addMultiOption($table['id'], $table['name']);
            }
            $this->addElement($category);
        }
}